<template>
  <div>
    <header class="header">
      <div class="icon-left-container">
        <i class="iconfont icon-right1">&#xe601;</i>
      </div>
      <div class="search-container">
        <i class="iconfont icon-search1">&#xe600;</i>
        <span class="input-text">输入城市/景点/游玩主题</span>
      </div>
      <router-link to="/city">
        <div class="select-container">
          <span class="city">武汉</span>
          <i class="iconfont icon-down">&#xe605;</i>
        </div>
      </router-link>
    </header>
  </div>
</template>

<script>
export default {
  name: "HomeHeader",
};
</script>

<style scoped>
.header {
  width: 100%;
  height: 0.86rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #00bcd4;
}

.icon-left-container {
  width: 0.64rem;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.icon-right1,
.icon-down {
  font-size: 14px;
  color: #ffffff;
}

.icon-down {
  font-size: 6px;
}

.search-container {
  width: 5.4rem;
  height: 30px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-radius: 4px;
  background: #ffffff;
}

/* input的占位符样式 */
::-webkit-input-placeholder {
  /* WebKit browsers */
  color: #bbb;
}
:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: #bbb;
}
::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: #bbb;
}
:-ms-input-placeholder {
  /* Internet Explorer 10+ */
  color: #bbb;
}

.icon-search1 {
  margin-left: 10px;
  margin-right: 10px;
  font-size: 14px;
  color: #bbb;
}

.input-text {
  color: #bbb;
}

.select-container {
  width: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.city {
  margin-right: 4px;
  color: #ffffff;
}
</style>